{% extends "base.html" %}

{% block title %}登录{% endblock %}

{% block content %}
<div class="row text-center vertical-middle-sm">
<h1>登录</h1>
<p>输入账号和密码</p>
<form class="form-horizontal" action="." method="post">
{% csrf_token %}
<!-- {{ form.as_p }} -->
<div class="form-group">
<label for="{{ form.username.id_for_label }}" class="col-md-5 control-label">
<span class="glyphicon glyphicon-user"></span> 账号
</label>
<div class="col-md-6 text-left">{{ form.username }}</div>
</div>
<div class="form-group">
<label for="{{ form.password.id_for_label }}" class="col-md-5 control-label">
<span class="glyphicon glyphicon-floppy-open"></span> 密码
</label>
<div class="col-md-6 text-left">{{ form.password }}</div>
</div>
<input type="submit" value="登录">
</form>
<p style="margin-top:10px">忘记密码了？<a href="{% url 'account:password_reset' %}">重置密码</a></p>
<p style="margin-top:10px">还没有账号？<a href="{% url 'account:user_register' %}">注册账号</a></p>
</div>
{% endblock %}
